//
//  FBSlideView.h
//  XTXOneToOne
//
//  Created by Canny on 2018/10/30.
//  Copyright © 2018年 WK. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FBSlideCollectionViewCell.h"

NS_ASSUME_NONNULL_BEGIN

typedef void (^FBSlideViewBlock)(NSString * title);
typedef void(^FBRefreashDataBlock)(void);
typedef void(^FBSlideViewSelectedBlock)(FBTradeOtcbillModel * model);


@protocol FBSlideViewDelegate <NSObject>

@required



@end
@interface FBSlideView : UIView

@property(nonatomic,strong)UICollectionView *collectionView;

@property(nonatomic,strong)NSArray *titleArray;

@property(nonatomic,strong)NSArray *selectedTitleArray;

@property(nonatomic,strong)UIColor *normalColor;

@property(nonatomic,strong)UIColor *selectedColor;

@property(nonatomic,strong)UIColor *SlideSelectedColor;

+(FBSlideView *)segmentControlViewWithFrame:(CGRect)frame;

-(void)btnTouch:(UIButton *)sender;

@property (nonatomic, weak) id<FBSlideViewDelegate>delegate;


@property(nonatomic,strong)FBSlideCollectionViewCell * CollectionViewCell;

@property(nonatomic,copy) FBSlideViewBlock block;

@property(nonatomic,copy) FBRefreashDataBlock rBlock;

@property(nonatomic,copy) FBSlideViewSelectedBlock selectedBlock;

@end

NS_ASSUME_NONNULL_END

